package com.dries.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dries.chat.entity.Room;
import com.dries.chat.form.AddChatRoomForm;
import com.dries.chat.form.JoinChatRoomForm;

/**
 * 聊天室
 *
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-07-24 10:13:58
 */
public interface IRoomService extends IService<Room> {

    /**
     * 创建聊天室
     */
    int createChatRoom(AddChatRoomForm addChatRoomForm);

    /**
     * 加入聊天室
     */
    int joinChat(JoinChatRoomForm joinChatRoomForm);

}

